package com.mofum.cloud.support.cpu.m6502;

import com.mofum.cloud.core.model.Instruction;
import com.mofum.cloud.core.model.RuntimeContextAware;
import com.mofum.cloud.core.model.impl.StandardInstructionImpl;

import java.math.BigInteger;

/**
 * 累加指令
 *
 * @author yumi@omuao.com
 */
public class ADC extends StandardInstructionImpl implements Instruction, RuntimeContextAware {

    public ADC() {
        this.setId(BigInteger.ZERO);
        this.setAlgorithm(() -> {
            int x = 1;
            int y = 1;
            int result = x + y;
            return null;
        });
    }
}
